home *** CD-ROM | disk | FTP | other *** search
/ The Very Best of Atari Inside / The Very Best of Atari Inside 1.iso / mint / mint110s / purec / puremint.txt < prev   
Text File  |  1993-07-27  |  2KB  |  51 lines

  1. How to compile MiNT 1.08 with PureC
  2. -----------------------------------
  3.  
  4. Julian F. Reschke, 25. Juni 1993
  5. email: reschke@math.uni-muenster.de
  6.  
  7.  
  8. (1) Special files
  9.  
  10. First of all, you need a special osbind.h. This is because Pure's own 
  11. version differs in some small details from the GCC header files. You 
  12. can't use Pure's tos.h, either, because in its latest versions it already 
  13. defines some of MiNT's data structures. You can either copy osbind.h into 
  14. the MiNT source directory or copy it into your PureC include folder. If 
  15. you are using the MiNT library, all should work fine without this file.
  16.  
  17. This is all what's needed. You can either use the command line versions 
  18. of PureC, or you can use the PureC shell (copy mintpure.prj to the source 
  19. directory). I am compiling MiNT with GNU make (latest version at 
  20. atari.archive.umich.edu should work fine) and a self-made 'cc' command, 
  21. that I've specially written for the PureC command line versions (see 
  22. makefile.pcc). This tool is still being tested, and I've not yet decided 
  23. how to distribute it. If you are interested, write to me.
  24.  
  25. If you're going to use the PureC shell, you'll have to 'manually' 
  26. translate the .spp files to the PASM syntax using asmtrans.ttp. The 
  27. syntax is
  28.  
  29. asmtrans -purec -o outfile.s outfile.spp
  30.  
  31. genmagic.ttp is needed to create the file magic.i, which in turn is 
  32. included by the .spp files.
  33.  
  34.  
  35. (2) Things to do
  36.  
  37. So far, I've made no attempt to translate asmtrans with PureC. Try it 
  38. yourself (you'll need alloca; might work with the MiNT library version 
  39. for PureC) or compile them with gcc.
  40.  
  41.  
  42. (3) Caveats
  43.  
  44. This is a preliminary 'port'. It seems to work fine on my machine, but 
  45. this guarantees nothing:
  46.  
  47. There's still a conflict in the way PureC saves registers with what MiNT 
  48. file system drivers or device drivers expect. You will have to use PureC 
  49. 1.1 to get the correct behaviour.
  50.  
  51.